﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="supportOnline.ascx.cs" Inherits="Administrator_AdminControl_supportOnline" %>
<%@ Register assembly="Telerik.Web.UI" namespace="Telerik.Web.UI" tagprefix="telerik" %>
<style type="text/css">
    .style1
    {
        text-align: left;
    }
</style>
<div >
    <div class="style1">
        <br />
        <h2>
            Support online<br />
        </h2>
    </div>
    <div class="style-padding1">
        <table style="width:70%;padding-bottom:20px">
            <tr>
                <td>Phone: </td>
                <td>
                    <asp:TextBox ID="txtPhoneStyle" runat="server" Width="200px"></asp:TextBox>
                </td>
                <td>
                    <asp:DropDownList ID="ddlPhone" runat="server" Width="100px">
                        <asp:ListItem Text="Hot line" Value="1"></asp:ListItem>
                        <asp:ListItem Text="Telephone" Value="2"></asp:ListItem>
                        <asp:ListItem Text="Fax" Value="3"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>Nickname: </td>
                <td><asp:TextBox ID="txtnickname" runat="server" Width="200px"></asp:TextBox></td>
                <td>
                    <asp:DropDownList ID="ddlnickname" runat="server" Width="100px">
                        <asp:ListItem Text="Yahoo" Value="1"></asp:ListItem>
                        <asp:ListItem Text="Skype" Value="2"></asp:ListItem>
                        <asp:ListItem Text="Msn" Value="3"></asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td colspan="3" align="center"><strong style="color:#C00000"><asp:Label ID="lblmsg" runat="server"></asp:Label></strong></td>
            </tr>
            <tr>
                <td colspan="3" align="center">
                    <asp:Button ID="btnsave" Text="Save" runat="server" onclick="btnsave_Click" />
                </td>
            </tr>
        </table>
        <telerik:RadGrid 
            ID="RadGrid1" runat="server" AllowPaging="True" AllowSorting="True" 
            AutoGenerateDeleteColumn="True" AutoGenerateEditColumn="True" 
            GridLines="None" PageSize="15" AutoGenerateColumns="False" 
            DataSourceID="LinqDataSource1" Skin="Office2007">
            <MasterTableView DataSourceID="LinqDataSource1">
                <NoRecordsTemplate>
                    Không có dữ liệu.
                </NoRecordsTemplate>
                <Columns>
                    <telerik:GridBoundColumn DataField="SupportOnline_PhoneNo" 
                        HeaderText="PhoneNo" ReadOnly="True" 
                        SortExpression="SupportOnline_PhoneNo" UniqueName="SupportOnline_PhoneNo">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SupportOnline_PhoneType" 
                        DataType="System.Byte" HeaderText="PhoneType" ReadOnly="True" 
                        SortExpression="SupportOnline_PhoneType" UniqueName="SupportOnline_PhoneType">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SupportOnline_Nick" 
                        HeaderText="Nickname" ReadOnly="True" 
                        SortExpression="SupportOnline_Nick" UniqueName="SupportOnline_Nick">
                    </telerik:GridBoundColumn>
                    <telerik:GridBoundColumn DataField="SupportOnline_NickType" 
                        DataType="System.Byte" HeaderText="NickType" ReadOnly="True" 
                        SortExpression="SupportOnline_NickType" UniqueName="SupportOnline_NickType">
                    </telerik:GridBoundColumn>
                </Columns>

                <EditFormSettings>
                    <EditColumn UniqueName="EditCommandColumn1"></EditColumn>
                </EditFormSettings>
            </MasterTableView>
        </telerik:RadGrid>
        <asp:LinqDataSource ID="LinqDataSource1" runat="server" 
            ContextTypeName="Up1VNDataContext" EntityTypeName="" 
            Select="new (SupportOnline_PhoneNo, SupportOnline_PhoneType, SupportOnline_Nick, SupportOnline_NickType)" 
            TableName="SupportOnlines" EnableDelete="True" EnableInsert="True" 
            EnableUpdate="True">
        </asp:LinqDataSource>
    </div>
</div>